import { connect } from 'umi';
import EchartsOperate from '../EchartsOperate';
import EchartsShow from '../EchartsShow';
import { updateIcon } from '@/assets';

import styles from './index.less';

const EchartsPanel = ({ echartsHourOrder, dispatch }) => {
  return (
    <div className={styles.echartsPanel}>
      <div className={styles.title}>
        <span>交易量-交易价-收益变动模型 时点{echartsHourOrder}</span>
        {/* <div className={styles.update}>
          <img className={styles.icon} src={updateIcon} onClick={() => {}} />
          <span className={styles.label}>刷新</span>
        </div> */}
      </div>
      <EchartsOperate />
      <EchartsShow />
    </div>
  );
};

export default connect(({ dayRollingTradeStragety }) => ({
  echartsHourOrder: dayRollingTradeStragety.echartsHourOrder,
}))(EchartsPanel);
